package com.by.goods.controller;


import com.by.common.core.bean.ResultBean;
import com.by.common.core.response.R;
import com.by.goods.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1")
public class OrderItemController {

    @Autowired
    OrderItemService orderItemService;

    @GetMapping("/orderItem/queryGoods")
    public ResultBean queryGoods(){
        List list =orderItemService.queryGoods();
        return R.success("查询成功",list);
    }

}
